/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2025/6/23
 * Time: 22:41
 */

#ifndef UIMOUSE_H
#define UIMOUSE_H
#include "../affiliate/Sprite.h"
#include "../core/ObjectScreen.h"

enum class Anchor;
class Sprite;
class UIMouse : public ObjectScreen
{
protected:
    Sprite * sprite1_ {nullptr};
    Sprite * sprite2_ {nullptr};
    float    timer_ {0};

public:
    static UIMouse * AddUIMouseChild(Object * _parent, const std::string & _file_path1, const std::string & _file_path2, float _scale = 1.0f, Anchor _anchor = Anchor::CENTER);

    void Update(float _dt) override;

    Sprite * GetSprite1() const { return sprite1_; }
    void     SetSprite1(Sprite * _sprite1) { sprite1_ = _sprite1; }

    Sprite * GetSprite2() const { return sprite2_; }
    void     SetSprite2(Sprite * _sprite2) { sprite2_ = _sprite2; }
};

#endif//UIMOUSE_H
